function ImportAllScripts(url) {
    IncludeJavaScript(url + "Scripts/MicrosoftMvcAjax.js");
    IncludeJavaScript(url + "Scripts/MicrosoftAjax.js");
    IncludeJavaScript(url + "Scripts/jquery.validate.js");
    IncludeJavaScript(url + "Scripts/jquery.validate.min.js");
    IncludeJavaScript(url + "Scripts/jquery-1.5.1.min.js");
    IncludeJavaScript(url + "Scripts/jquery.unobtrusive-ajax.min.js");
    IncludeJavaScript(url + "Scripts/Layout.js");
//    IncludeJavaScript(url + "Scripts/jquery.cookies.min.js");
}

function IncludeJavaScript(jsFile) {
    document.write('<script type="text/javascript" src="'
    + jsFile + '"></scr' + 'ipt>');
}

function setCookie(cookieName, value, time) {
    jaaulde.utils.cookies.set(cookieName, value, { expires: time });

}

function viewDropContent(id) {
    if ($("#" + id).size()) {
        var temp = false;
        if (id.toLowerCase().indexOf('day') >= 0) {
            temp = is_viewDay;
            is_viewDay = !temp;
        }
        else if (id.toLowerCase().indexOf('month') >= 0) {
            temp = is_viewMonth;
            is_viewMonth = !temp;
        }
        else if (id.toLowerCase().indexOf('year') >= 0) {
            temp = is_viewYear;
            is_viewYear = !temp;
        }
        else {
            temp = is_viewGender;
            is_viewGender = !temp;
        }

        if (!temp)
            $("#" + id).show()
        else
            $("#" + id).hide()
    }
}

function SethideDropContent(id, objInput) {
    if ($("#" + id).size() && $("#" + objInput).size()) {
        $("#" + id + " div").click(function() {
            $("#" + objInput).val($(this).text())
            $("#" + id).hide()
        });
    }
}